package com.mapper;

import com.entity.Comment;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Milburn
 * @create 2021-03-01 17:42
 */
@Repository
public interface CommentMapper {

    Comment findCommentById(long comment_id);

    Integer addComment(Comment comment);

    Integer updateComment(Comment comment);

    Integer deleteComment(long comment_id);

    List<Comment> findAllComments();

    List<Comment> findCommentsByMovieId(long movie_id);

    List<Comment> findCommentsByUserName(String user_name);
}
